package ywpt.service.config;

import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

import ywpt.model.XueliInfo;

public interface XueliService {

	public abstract XueliInfo getXueliInfoById(Long id);

	public abstract int getXueliInfoCountByCriteria(DetachedCriteria query);

	public abstract List<XueliInfo> getXuelifos(
			DetachedCriteria query, int pageSize, int startIndex);

	public abstract String createXueliCode();

	public abstract void saveXueliInfo(XueliInfo xueliInfo);

	public abstract void updatXueliInfo(XueliInfo xueliInfo);

	public abstract void removeXueliInfo(Long id);

	public abstract List<XueliInfo> getXueliInfos();
	
	public abstract List<XueliInfo> getXueliInfos(DetachedCriteria query);

	public abstract List<XueliInfo> getXueliByXueliName(String xueliName, int start,
			int size);
	
	public abstract int getXuelisCountByName(String xueliName);
}
